/****************************************************************************
** Meta object code from reading C++ file 'cannonfield.h'
**
** Created: Fri May 9 11:39:57 2008
**      by: The Qt Meta Object Compiler version 59 (Qt 4.3.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../headers/cannonfield.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'cannonfield.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59
#error "This file was generated using the moc from 4.3.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

static const uint qt_meta_data_CannonField[] = {

 // content:
       1,       // revision
       0,       // classname
       0,    0, // classinfo
      16,   10, // methods
       0,    0, // properties
       0,    0, // enums/sets

 // signals: signature, parameters, type, tag, flags
      15,   13,   12,   12, 0x05,
      27,   12,   12,   12, 0x05,
      45,   36,   12,   12, 0x05,
      72,   63,   12,   12, 0x05,
      94,   90,   12,   12, 0x05,
     114,  109,   12,   12, 0x05,

 // slots: signature, parameters, type, tag, flags
     137,  131,   12,   12, 0x0a,
     157,  151,   12,   12, 0x0a,
     171,   12,   12,   12, 0x0a,
     179,   12,   12,   12, 0x0a,
     191,   12,   12,   12, 0x0a,
     203,   12,   12,   12, 0x0a,
     218,   12,   12,   12, 0x0a,
     232,   12,   12,   12, 0x0a,
     246,   12,   12,   12, 0x08,
     257,   12,   12,   12, 0x08,

       0        // eod
};

static const char qt_meta_stringdata_CannonField[] = {
    "CannonField\0\0p\0hit(QPoint)\0missed()\0"
    "newAngle\0angleChanged(int)\0newForce\0"
    "forceChanged(int)\0can\0canShoot(bool)\0"
    "wind\0windChanged(int)\0angle\0setAngle(int)\0"
    "force\0setForce(int)\0shoot()\0newTarget()\0"
    "addTarget()\0deleteTarget()\0setGameOver()\0"
    "restartGame()\0moveShot()\0updateTargetPos()\0"
};

const QMetaObject CannonField::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_CannonField,
      qt_meta_data_CannonField, 0 }
};

const QMetaObject *CannonField::metaObject() const
{
    return &staticMetaObject;
}

void *CannonField::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_CannonField))
	return static_cast<void*>(const_cast< CannonField*>(this));
    return QWidget::qt_metacast(_clname);
}

int CannonField::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: hit((*reinterpret_cast< QPoint(*)>(_a[1]))); break;
        case 1: missed(); break;
        case 2: angleChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: forceChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: canShoot((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: windChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: setAngle((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: setForce((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: shoot(); break;
        case 9: newTarget(); break;
        case 10: addTarget(); break;
        case 11: deleteTarget(); break;
        case 12: setGameOver(); break;
        case 13: restartGame(); break;
        case 14: moveShot(); break;
        case 15: updateTargetPos(); break;
        }
        _id -= 16;
    }
    return _id;
}

// SIGNAL 0
void CannonField::hit(QPoint _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void CannonField::missed()
{
    QMetaObject::activate(this, &staticMetaObject, 1, 0);
}

// SIGNAL 2
void CannonField::angleChanged(int _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void CannonField::forceChanged(int _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void CannonField::canShoot(bool _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void CannonField::windChanged(int _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
